# 定义一个类
class Student():
    def eat(self,name):
        print(f"self的地址:{id(self)}")
        print(f"{name}学生在吃饭")

stu1 = Student()
print(f"sum1的地址:{id(stu1)}")
print(id(stu1))
stu1.eat("小明")

stu2 = Student()
print(f"stu2的地址：{id(stu2)}")
print(id(stu2))
stu2.eat("小红")